package com.study.pojo;

import com.influxdb.annotations.Column;
import com.influxdb.annotations.Measurement;
import lombok.Data;

/**
 * @Description: TODO
 * @Measurement(name = "centreIotData")注解相当于表明
 * @Author: csc
 * @Date: 2024/4/10 14:54
 * @Version: 1.0
 **/

@Data
@Measurement(name = "centreIotData")
public class CentreIotData {



    /**设备编号也就是数据传输的id*/
    @Column(tag  = true)
    String clientIdentifier;

    @Column(tag = true)
    String topic;

    /**原始数据*/
    @Column
    private String message;

    @Column
    private Long qos;

    @Column
    private boolean retain;

}
